<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>login</title>
    <link rel="stylesheet" href="login.css">
    <style>
        /* input{
            border-radius: 5px;
        } */
    </style>
</head>
<body class="background">
    <div class="login">
        <div>
           <label for="">账号登陆</label>
        </div>
        <div>
            <hr style="color:#f1f1f1; width: 100%;">
        </div>
        <div class="loginInput">
            <form action="loginServlet" method="post">
                <div class="classOfnum">
                    <label for="num">账号：</label>
                    <input class="input_box" type="text" name="num" id="num">
                </div>
                <div class="classOfPw">
                    <label for="password">密码：</label>
                    <input class="input_box" type="password" name="password" id="password">
                </div>
                <div class="classOfbt">
                    <input type="submit" onclick="login()" value="登陆">
                </div>
            </form>
    </div>
  	<%if(session.getAttribute("massage")!=null){
		if(session.getAttribute("massage").equals("error")){
	%>
			<script>
				alert("登陆失败！");
			</script>
	<%
			}
		}
	 %>
</body>
</html>